package foundation.web.flow;

import java.util.HashMap;
import java.util.Map;

/**
 * This class represents a step in a flow
 * 
 * @author fgarcia
 *
 */
public class FlowStep {

	private FlowStepStateHolder stateHolder;
	private String url;



	public FlowStep(String url, FlowStepStateHolder stateHolder) {
		this.url = url;
		this.stateHolder = stateHolder;
	}

	public FlowStep(String url, FlowStepStateHolder stateHolder,Map<String, Object> sessionParameters) {
		this.url = url;
		this.stateHolder = stateHolder;		
	}
	
	public FlowStepStateHolder getStateHolder() {
		return stateHolder;
	}
	
	public String getUrl() {
		return url;
	}	
		
}
